package cn.wx.scholar.core.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cn.wx.common.persistence.base.BaseController;
import cn.wx.common.persistence.web.ResponseData;
import cn.wx.scholar.core.entity.qo.NewsYeeSightQ;
import cn.wx.scholar.core.service.NewsFromYeeSightService;

/**
 * @description : News 控制器 ---------------------------------
 * @author
 * @since 2018-11-01
 */
@RestController
@RequestMapping("/sholar/yeesight/news")
public class NewsFromYeeSightController extends BaseController {

	@Autowired
	private NewsFromYeeSightService newsService;
	
	/**
	 * @description : 通过条件获取News分页 ---------------------------------
	 * @author :
	 * @since : Create in 2018-11-02
	 */
	@RequestMapping(value = "/query/page", method = RequestMethod.POST)
	public ResponseData queryUnique(NewsYeeSightQ newsQ) throws Exception {
		return success(newsService.getSearchResult(newsQ));
	}

}